package com.ruibang.glass.common.domain.produce;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruibang.glass.common.utils.validateannotation.NotBlank;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * <p>
 * 质量-理化-理化分析报告
 * </p>
 *
 * @author songJinKang
 * @since 2024-03-22
 */

@ApiModel(value = "质量-理化-理化分析报告")
@Data
@TableName(value = "g_produce_analysis_report")
public class AnalysisReport{
    private String id;
    @NotBlank(message = "工序不可为空")
    @ApiModelProperty(value = "工序：0：成型 1：通道 2：窑炉")
    private String processes;
    @ApiModelProperty(value = "报告名称")
    @NotBlank(message = "报告名称不可为空")
    private String reportName;
    @ApiModelProperty(value = "日期")
    @NotNull(message = "日期不可为空")
    private LocalDate date;
    @ApiModelProperty(value = "检测人")
    private String checkBy;
    @ApiModelProperty(value = "检测人用户ID")
    @NotBlank(message = "检测人不可为空")
    private String checkById;
    @ApiModelProperty(value = "附件")
    @NotBlank(message = "附件不可为空")
    private String file;
    @ApiModelProperty(value = "是否删除：1：是 0：否")
    @TableLogic
    private String isDelete;
    @ApiModelProperty("创建人用户名称")
    private String createUserName;
    @ApiModelProperty("创建人用户ID")
    private String createUserId;
}
